const fs = require('fs')
const readImgSrcToBase64 = (path) => {
    const data = fs.readFileSync(path)
    const base64Data = Buffer.from(data).toString('base64')
    const imgbase64 = `data:image/jpeg;base64,${base64Data}`
    return imgbase64
}
module.exports = {
    readImgSrcToBase64
}